<template>
  <div  class="loading" v-show="visible">
    <div class="loading_wrapper">
      <img src="../../assets/2.gif" alt="" />
    </div>
  </div>
</template>


<script>
export default {
  data() {
    return {
      visible: false,
    };
  },
  methods: {
    close() {
      this.visible = false;
    },
  },
};
</script>


<style lang="scss" scoped>
.loading {
  width: 56vh;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
.loading_wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
